package com.yunyi.dm.builder;

/**
 * 指挥者
 *
 * @author yunyi
 */
public class Director {
    private Builder builder;

    public Director(Builder builder) {
        this.builder = builder;
    }

    /**
     * 组装
     */
    public Bike constructBike() {
        builder.buildFrame();
        builder.buildSeat();
        return builder.createBike();
    }


}
